package xyz.thoughtset.viewer.modules.ds.command.executor;

import lombok.SneakyThrows;
import org.apache.ibatis.mapping.BoundSql;
import org.apache.ibatis.mapping.SqlSource;
import org.apache.ibatis.parsing.XNode;
import org.apache.ibatis.parsing.XPathParser;
import org.apache.ibatis.reflection.ParamNameResolver;
import org.apache.ibatis.scripting.xmltags.XMLScriptBuilder;
import org.apache.ibatis.session.Configuration;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.util.StringUtils;
import xyz.thoughtset.viewer.executor.core.base.AbstractExecutor;
import xyz.thoughtset.viewer.executor.core.entity.QueryBody;
import xyz.thoughtset.viewer.modules.ds.core.factory.ConnectFactory;

import java.util.HashMap;
import java.util.Map;

@Component
public class CommandExecutor extends AbstractExecutor {
    @Autowired
    protected ConnectFactory connectFactory;
    public CommandExecutor() {
        super(null, true);
    }
    private final Configuration configuration = new Configuration();
    private final String head_xml = "<root>";
    private final String tail_xml = "</root>";

    @Override
    protected Object exec(QueryBody queryBody, Map param) {
        return null;
//        return doQuery(queryBody.getQuery(),param, connectFactory.buildConnect(queryBody.getDsId(), BaseReq.class));
    }




}
